package com.kayo.specimen.service;

import com.kayo.specimen.model.Privilege;
import com.kayo.specimen.model.Role;

import java.util.List;

public interface RoleService {
    int addRoles(Role... roles);

    int updateRoles(Role... roles);

    int removeRoles(String... roleId);

    List<Role> getRoles(String id,String name,String order);

    int grantPrivileges(String roleId, String... privileges);

    int revokePrivileges(String roleId, String... privileges);

    List<Privilege> getGrantedPrivileges(String roleId);
}
